import React ,{Component} from "react";
import Chii from './chiid'
class demo extends Component {
  constructor(props) {
    super(props);
  }
  state = { 
      role:'admin',
      userinfo:{
        name:'zhangsan',
        age:18
      }
   }
  render() { 
    return ( 
      <div>
        <h3>父传子</h3>
        <Chii role={this.state.role} userinfo={this.state.userinfo}></Chii>
      </div>
     );
  }
}
 
export default demo;